package oop2;

/**
 * @author oldliu
 * @since 1.0
 */
public class Driver {
    String name;
    public Driver(String n){
        this.name=n;
    }

    public void drive(Car c){
        System.out.println("老司机"+name+"开着小轿车"+c.serialNo+",在秋名山找人决斗");
    }
    public void drive(Bus b){
        System.out.println("老司机"+name+"开着公交"+b.line+",从"+b.from+"到"+b.to+",糊口");
    }
    public void drive(Taxi t){
        System.out.println("老司机"+name+"开着出租车"+t.serialNo+",混饭吃，路边等客！");
    }
}
